//
//  ZLSoloViewController.m
//  Advertisement
//
//  Created by mac on 16/4/12.
//  Copyright © 2016年 Appcoda. All rights reserved.
//

#import "ZLSoloViewController.h"

@interface ZLSoloViewController ()

@end

@implementation ZLSoloViewController

-(void)viewWillAppear:(BOOL)animated
{
    
    UIWebView * webview = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    NSURL * url = [NSURL URLWithString:self.string];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [webview loadRequest:request];
    webview.scalesPageToFit = YES;
    [self.view addSubview:webview];
}


- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = self.myTitle;

}



-(void)back
{
    [self.navigationController popToRootViewControllerAnimated:YES];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
   
}


@end
